package com.rentcars.service;

import com.github.pagehelper.PageInfo;
import com.rentcars.entity.Credit;

import java.util.List;

/**
 * @author 任梦强
 * @data 2021.3.2
 */
public interface CreditService {
    /**
     * 分页显示
     * @param curr
     * @param pageSize
     * @param credit
     * @return
     */
    PageInfo<Credit> selectAllCredit(Credit credit,Integer curr,Integer pageSize);

    /**
     * 添加客户的信用值
     * @param credit
     * @return
     */
    int insertSelective(Credit credit);


    /**
     *根据ID查询客户信息
     * @param cid
     * @return
     */

    Credit selectCreditById(String cid);


    /**
     * 修改信息
     * @param credit
     * @return
     */
    int updateCredit(Credit credit);

    /**
     * 根据ID删除客户信息
     * @param cid
     * @return
     */
    int deleteByCid(String cid);

    /**
     * 批量删除
     * @param cidList
     * @return
     */

    int delCredit(List<String> cidList);
}
